package calculator;

public class NegativeExpression extends UnaryExpression {

	public NegativeExpression(IExpression in)
	{
		super(in);
	}
	
	@Override
	public Double calculate() {
		Double result = expression.calculate();
		return -(result);
	}

}
